package com.java.interfaces.exer3;

/**
 * @author luzhikun
 * @date 2020/12/17-15:40
 */
public class InterfaceTest {
    public static void main(String[] args) {
        CompaerableCircle c1 = new CompaerableCircle(5.5);
        CompaerableCircle c2 = new CompaerableCircle(3.5);
        int a = c1.compareTo(c2);
        if (a > 0) {
            System.out.println("c1对象大");
        } else if (a < 0) {
            System.out.println("c2对象大");
        } else {
            System.out.println("他们一样大");
        }

    }
}